package face.pay.api.alipay.api;

import face.pay.api.payter.AliPayTerminal;
import face.pay.util.ResultMessage;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/alipay/api/")
public class ApiAliPay {

    @Autowired
    AliPayTerminal aliPayTerminal;

    @RequestMapping("/payorder")
    @ResponseBody
    public ResultMessage payface(@RequestBody String dataJson){

        /**
         * 支付宝 刷脸和接口调用用同一个方式
         */
        return aliPayTerminal.qrPay(dataJson);
    }

}
